package access.dao.impl;

import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import access.dao.AccessDao;

@Repository
public class AccessDaoImpl implements AccessDao {
	@Autowired
    private SessionFactory factory;
	
	@Override
	public boolean accessAction(int userId, int actionId) {
		Query q = factory.getCurrentSession().createQuery("");
		q.uniqueResult();
		return false;
	}

	@Override
	public boolean accessRole(int userId, int roleId) {
		return false;
	}

	@Override
	public boolean accessRole(int userId, String roleIds) {
		return false;
	}

	@Override
	public boolean accessOrg(int userId, int orgId) {
		return false;
	}
}
